var rules ={
    mobile: [/^1[3-9]\d{9}$/, "请填写有效的手机号"],
    chinese: [/^[\u0391-\uFFE5]+$/, "请填写中文字符"],
    ip: [/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/i, '请填写有效的 IP 地址'],
}


$.validator.config(
    {
        rules:rules
    }

)